﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TrainTicketBookingSystem
{
    public partial class UserForm : Form
    {
        public static UserForm userForm = null;
        public UserForm()
        {
            InitializeComponent();
            userForm = this;
        }

        private void btnIfo_Click(object sender, EventArgs e)
        {
            this.Hide();
            CheckIfoForm checkIfoForm = new CheckIfoForm();
            checkIfoForm.Show();
        }

        private void btnExit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void UserForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            LoginFrom.loginFrom.Show();
        }

        private void UserForm_Load(object sender, EventArgs e)
        {

        }

        private void btnPurchase_Click(object sender, EventArgs e)
        {
            this.Hide();
            BuyTicketForm buyTicketForm = new BuyTicketForm();
            buyTicketForm.Show();
        }

        private void btnRefund_Click(object sender, EventArgs e)
        {
            this.Hide();
            RefoundForm refoundForm = new RefoundForm();
            refoundForm.Show();
        }
    }
}
